package com.company;

public class ObserverTest {
    public static void main(String[] args){
        com.lean.ssm.chapter2.observable.ProductList observable = com.lean.ssm.chapter2.observable.ProductList.getInstance();
        com.lean.ssm.chapter2.observable.TaoBaoObserver taoBaoObserver = new com.lean.ssm.chapter2.observable.TaoBaoObserver();
        JingDongObserver jdObserver = new JingDongObserver();
        observable.addObserver(jdObserver);
        observable.addObserver(taoBaoObserver);
        observable.addProudct("新增产品1");
    }
}
